package org.example.erp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName maintenance_project
 */
@TableName(value ="maintenance_project")
@Data
public class MaintenanceProject implements Serializable {
    /**
     * 项目编码,主键不自增
     */
    @TableId
    private String projectNo;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 项目类型（0设备保养，1设备点检）
     */
    private String projectType;

    /**
     * 0未启用，1启用
     */
    private String enable;

    /**
     * 项目内容
     */
    private String projectContent;

    /**
     * 标准
     */
    private String standard;

    /**
     * 备注
     */
    private String remark;

    /**
     * 备用列1
     */
    private String columnOne;

    /**
     * 备用列2
     */
    private String columeTwo;

    /**
     * 备用列3
     */
    private String columeThree;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MaintenanceProject other = (MaintenanceProject) that;
        return (this.getProjectNo() == null ? other.getProjectNo() == null : this.getProjectNo().equals(other.getProjectNo()))
            && (this.getProjectName() == null ? other.getProjectName() == null : this.getProjectName().equals(other.getProjectName()))
            && (this.getProjectType() == null ? other.getProjectType() == null : this.getProjectType().equals(other.getProjectType()))
            && (this.getEnable() == null ? other.getEnable() == null : this.getEnable().equals(other.getEnable()))
            && (this.getProjectContent() == null ? other.getProjectContent() == null : this.getProjectContent().equals(other.getProjectContent()))
            && (this.getStandard() == null ? other.getStandard() == null : this.getStandard().equals(other.getStandard()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getColumnOne() == null ? other.getColumnOne() == null : this.getColumnOne().equals(other.getColumnOne()))
            && (this.getColumeTwo() == null ? other.getColumeTwo() == null : this.getColumeTwo().equals(other.getColumeTwo()))
            && (this.getColumeThree() == null ? other.getColumeThree() == null : this.getColumeThree().equals(other.getColumeThree()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProjectNo() == null) ? 0 : getProjectNo().hashCode());
        result = prime * result + ((getProjectName() == null) ? 0 : getProjectName().hashCode());
        result = prime * result + ((getProjectType() == null) ? 0 : getProjectType().hashCode());
        result = prime * result + ((getEnable() == null) ? 0 : getEnable().hashCode());
        result = prime * result + ((getProjectContent() == null) ? 0 : getProjectContent().hashCode());
        result = prime * result + ((getStandard() == null) ? 0 : getStandard().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getColumnOne() == null) ? 0 : getColumnOne().hashCode());
        result = prime * result + ((getColumeTwo() == null) ? 0 : getColumeTwo().hashCode());
        result = prime * result + ((getColumeThree() == null) ? 0 : getColumeThree().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", projectNo=").append(projectNo);
        sb.append(", projectName=").append(projectName);
        sb.append(", projectType=").append(projectType);
        sb.append(", enable=").append(enable);
        sb.append(", projectContent=").append(projectContent);
        sb.append(", standard=").append(standard);
        sb.append(", remark=").append(remark);
        sb.append(", columnOne=").append(columnOne);
        sb.append(", columeTwo=").append(columeTwo);
        sb.append(", columeThree=").append(columeThree);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}